package com.community.consumer.mapper;

import com.community.common.entity.Order;
import com.community.common.entity.OrderMore;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    /**
     * 添加积分
     * @param order
     */
    void updateById(@Param("order") Order order, @Param("price") Double price);

    /**
     * 查找花费
     * @param orderNum
     * @param userId
     * @return
     */
    Double findOrderMore(@Param("orderNum") String orderNum, @Param("userId") Integer userId);
}
